package com.hdax.easybuy.api.orderAPI;

import com.hdax.easybuy.entity.Order;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "easybuy-Order-manager")
public interface OrderManagerClient {
    @RequestMapping("/managerOrder/getAllOrder")
    public List<Order> queryAllOrder();

    @RequestMapping("/managerOrder/getOrderByUserId/{userid}")
    public List<Order> getOrderByUserId(@PathVariable("userid")int userid);


}
